Probably you're using LocalDateTime from Java 8. This class has not any constructor for string. In the example which you're following LocalDateTime is from ... ... <看更多>
Time is represented to nanosecond precision. * For example, the value "2nd October 2007 at 13:45.30.123456789" can be. * stored in a {@code LocalDateTime}. ... <看更多>